package com.autonavi.yunda.yunji.job.executor.config;

import com.alibaba.middleware.eagleeye.sdk.EagleeyeSDK;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * sunfire 监控
 */
@Configuration
public class EagleEyeAutoConfiguration {

    @PostConstruct
    public void postConstruct() {
        EagleeyeSDK.init();
    }

    @PreDestroy
    public void preDestroy() {
        EagleeyeSDK.destroy();
    }
}